home *** CD-ROM | disk | FTP | other *** search
- //
- // The Fusion Library Interface for DOS
- // Version 1.06c
- // Copyright (C) 1990, 1991, 1992
- // Software Dimensions
- //
- // BlazeClass
- //
-
- #ifndef __BCPLUSPLUS__
- #pragma inline
- #endif
-
- #include "fli.h"
-
- #ifdef __BCPLUSPLUS__
- #pragma hdrstop
- #endif
-
- #define I asm
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // CharacterRepeaterDown()
- //
- // Repeats a certain character downward in a straight line
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- void BlazeClass::CharacterRepeaterDown(int X,int Y,int Height,
- int Color,int Character)
- {
- if (Height<1 || X>=WinWide || Y>=WinHigh)
- return;
-
- int ScreenWidth = BlazeClass::QuickWidth;
- int Locator = ((WinY+Y)*ScreenWidth)+((WinX+X)*2);
-
- if (Y+Height>=WinHigh)
- Height=WinHigh-Y;
-
- void far *OUTPUT=BlazeClass::OUTPUT;
- I les di,OUTPUT
- I add di,Locator
-
- ScreenWidth-=2;
-
- I cld
- I mov al,byte ptr Character
- I mov ah,byte ptr Color
- I mov cx,Height
-
- again:
-
- I stosw
- I add di,ScreenWidth
- I loop again
- }
-